package test.file;

import java.io.File;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

public class testZip {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception{
		File f = new File("F:\\OOP-DBMS\\data\\test\\reflect\\test.data");
		if(!f.exists())f.createNewFile();
//		ZipEntry ze = new ZipEntry("test1.ent");
//		ze.setExtra(new byte[100]);
//		ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(f));
//		zos.putNextEntry(ze);
//		zos.closeEntry();
//		zos.close();
		byte[] extra = null;
		ZipFile zf = new ZipFile(f);
		ZipEntry ze2 = zf.getEntry("test1.ent");
		extra = ze2.getExtra();
		System.out.println(extra.length);
	}

}
